<form action="/admin/main/changePassword" method="post"  enctype="application/x-www-form-urlencoded">
    <div class="form-group">
        <label for="exampleInputEmail1">用户名</label>
        <input type="text" name="name" class="form-control" id="userName"  placeholder="请输入您的用户名">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">密码</label>
        <input type="text" class="form-control" name="password" id="passWord" placeholder="请输入您的密码">
    </div>
    <button type="submit" class="btn btn-secondary btn-lg btn-block">提交</button>
</form>

<script>
    $(function(){
        $.get("/admin/main/getUserAccout", function(data){
            console.log(data);
            $("#userName").val(data.name);
            $("#passWord").val(data.password);
        });
    })
</script>